﻿using System.ServiceModel;
using Lab620.WcfRadiusService.Extentions;

namespace Lab620.WcfRadiusService.Contracts
{
    //Guid myToken = OperationContext.Current.IncomingMessageHeaders.GetHeader<Guid>("token", "ns");

    [ServiceContract(Namespace = RadiusMessageConstants.RadiusEncodingNamespace)]
    public interface IAuthenticationService
    {
        [OperationContract]
        bool Authenticate(string userName, byte[] password, byte[] authenticator);
    }


    [ServiceContract(Namespace = RadiusMessageConstants.RadiusEncodingNamespace)]
    public interface IAccountingService
    {
        [OperationContract]
        void Account(string userName);
    }
}